package com.rc.mutievcharger.dto.ylevcharger.terminal.req;

import com.rc.evcharger.common.annotation.ByteLength;
import com.rc.evcharger.common.base.yl.BaseYlCommand;

import java.math.BigDecimal;

/**
 * Create by Yang on 2021/7/22
 * (CMD=8)后台服务器下发充电桩开启充电控制命令
 */
public class YlStartCommandReq extends BaseYlCommand {

    @ByteLength(length = 2)
    private String obligate1; //预留字段1
    @ByteLength(length = 2)
    private String obligate2; //预留字段1
    @ByteLength(length = 32)
    private String terminalId; //充电桩编码
    @ByteLength(length = 1)
    private String gunNum; //同服务发送枪口
    @ByteLength(length = 4)
    private String chargingType; //命令启始标志
    @ByteLength(length = 1)
    private BigDecimal cmdCount; //命令启始标志
    @ByteLength(length = 1)
    private BigDecimal result; //命令执行结果 0 表示成功，其它失败

    public String getObligate1() {
        return obligate1;
    }

    public void setObligate1(String obligate1) {
        this.obligate1 = obligate1;
    }

    public String getObligate2() {
        return obligate2;
    }

    public void setObligate2(String obligate2) {
        this.obligate2 = obligate2;
    }

    @Override
    public String getTerminalId() {
        return terminalId;
    }

    @Override
    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public String getGunNum() {
        return gunNum;
    }

    public void setGunNum(String gunNum) {
        this.gunNum = gunNum;
    }

    public String getChargingType() {
        return chargingType;
    }

    public void setChargingType(String chargingType) {
        this.chargingType = chargingType;
    }

    public BigDecimal getCmdCount() {
        return cmdCount;
    }

    public void setCmdCount(BigDecimal cmdCount) {
        this.cmdCount = cmdCount;
    }

    public BigDecimal getResult() {
        return result;
    }

    public void setResult(BigDecimal result) {
        this.result = result;
    }
}
